package com.heima.feign.admin;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Fuqiang
 * @since :2023-03-27
 */
@FeignClient("leadnews-admin")
public interface AdminFeignClient {


    /**
     * 根据频道id查询频道名
     *
     * @param id
     * @return
     */
    @GetMapping("/api/v1/channel/getChannelName/{id}")
    String getChannelNameById(@PathVariable("id") Integer id);

}
